package cn.edu.zut.internship.mapper.evaluation;

import java.util.List;
import java.util.Map;

public interface EvaluationMapper {

    List<Map> getList(Map params);

    int getListCount(Map params);

    Map getEvaluation(Long evaluationId);

    /**
     * 获取实训单位所有父评论的评分信息
     * @param internshipId
     * @return
     */
    Map getCompanyScore(Long internshipId);

    int  addEvaluation(Map params);

    int updateEvaluation(Map params);

    int deleteEvaluation(Map params);

    int deleteChildrenEvaluation(Map params);

    List<Map> getEvaluationChildren(Long personEvaluationId);

    int addLikeNum(Map params);

    int cancelLikeNum(Map params);
}
